PATH![]() |
![]() ![]() |
The WindowAttributes enumeration defines masks your application can use to set or test window feature bits. You can use these masks with the function CreateNewWindow to set window feature bits, thereby defining a window's attributes. You can also use these masks to test the window feature bits produced by the function GetWindowAttributes , thereby obtaining a window's attributes.
enum {
kWindowNoAttributes = 0L,
kWindowCloseBoxAttribute = (1L << 0),
kWindowHorizontalZoomAttribute = (1L << 1),
kWindowVerticalZoomAttribute = (1L << 2),
kWindowFullZoomAttribute = (kWindowVerticalZoomAttribute |
kWindowHorizontalZoomAttribute),
kWindowCollapseBoxAttribute = (1L << 3),
kWindowResizeableAttribute = (1L << 4),
kWindowSideTitlebarAttribute = (1L << 5),
kWindowNoUpdatesAttribute = (1L << 16),
kWindowNoActivatesAttribute = (1L << 17),
kWindowStandardDocumentAttributes = (kWindowCloseBoxAttribute |
kWindowFullZoomAttribute |
kWindowCollapseBoxAttribute |
kWindowResizeableAttribute),
kWindowStandardFloatingAttributes = (kWindowCloseBoxAttribute |
kWindowCollapseBoxAttribute)
};
typedef UInt32 WindowAttributes;